home *** CD-ROM | disk | FTP | other *** search
/ C!T ROM 3 / ct-rom iiib.zip / ct-rom iiib / WINDOWS / DIVERSEN / WINE02BX / EMACS.9 < prev    next >
Text File  |  1993-03-28  |  48KB  |  1,145 lines

  1. Info file ../info/emacs, produced by Makeinfo, -*- Text -*- from input
  2. file lemacs.tex.
  3.  
  4.    This file documents the GNU Emacs editor.
  5.  
  6.    Copyright (C) 1985, 1986, 1988 Richard M. Stallman.  Copyright (C)
  7. 1991, 1992 Lucid, Inc.
  8.  
  9.    Permission is granted to make and distribute verbatim copies of
  10. this manual provided the copyright notice and this permission notice
  11. are preserved on all copies.
  12.  
  13.    Permission is granted to copy and distribute modified versions of
  14. this manual under the conditions for verbatim copying, provided also
  15. that the sections entitled "The GNU Manifesto", "Distribution" and "GNU
  16. General Public License" are included exactly as in the original, and
  17. provided that the entire resulting derived work is distributed under
  18. the terms of a permission notice identical to this one.
  19.  
  20.    Permission is granted to copy and distribute translations of this
  21. manual into another language, under the above conditions for modified
  22. versions, except that the sections entitled "The GNU Manifesto",
  23. "Distribution" and "GNU General Public License" may be included in a
  24. translation approved by the author instead of in the original English.
  25.  
  26. 
  27. File: emacs,  Node: Comments,  Next: Balanced Editing,  Prev: Matching,  Up: Programs
  28.  
  29. Manipulating Comments
  30. =====================
  31.  
  32.    The comment commands insert, kill and align comments.
  33.  
  34. `M-;'
  35.      Insert or align comment (`indent-for-comment').
  36.  
  37. `C-x ;'
  38.      Set comment column (`set-comment-column').
  39.  
  40. `C-u - C-x ;'
  41.      Kill comment on current line (`kill-comment').
  42.  
  43. `M-LFD'
  44.      Like RET followed by inserting and aligning a comment
  45.      (`indent-new-comment-line').
  46.  
  47.    The command that creates a comment is `Meta-;'
  48. (`indent-for-comment').  If there is no comment already on the line, a
  49. new comment is created and aligned at a specific column called the
  50. "comment column".  Emacs creates the comment by inserting the string
  51. at the value of `comment-start'; see below.  Point is left after that
  52. string.  If the text of the line extends past the comment column,
  53. indentation is done to a suitable boundary (usually, at least one
  54. space is inserted).  If the major mode has specified a string to
  55. terminate comments, that string is inserted after point, to keep the
  56. syntax valid.
  57.  
  58.    You can also use `Meta-;' to align an existing comment.  If a line
  59. already contains the string that starts comments, `M-;' just moves
  60. point after it and re-indents it to the conventional place.  Exception:
  61. comments starting in column 0 are not moved.
  62.  
  63.    Some major modes have special rules for indenting certain kinds of
  64. comments in certain contexts.  For example, in Lisp code, comments
  65. which start with two semicolons are indented as if they were lines of
  66. code, instead of at the comment column.  Comments which start with
  67. three semicolons are supposed to start at the left margin.  Emacs
  68. understands these conventions by indenting a double-semicolon comment
  69. using TAB, and by not changing the indentation of a triple-semicolon
  70. comment at all.
  71.  
  72.      ;; This function is just an example
  73.      ;;; Here either two or three semicolons are appropriate.
  74.      (defun foo (x)
  75.      ;;; And now, the first part of the function:
  76.        ;; The following line adds one.
  77.        (1+ x))           ; This line adds one.
  78.  
  79.    In C code, a comment preceded on its line by nothing but whitespace
  80. is indented like a line of code.
  81.  
  82.    Even when an existing comment is properly aligned, `M-;' is still
  83. useful for moving directly to the start of the comment.
  84.  
  85.    `C-u - C-x ;' (`kill-comment') kills the comment on the current
  86. line, if there is one.  The indentation before the start of the
  87. comment is killed as well.  If there does not appear to be a comment in
  88. the line, nothing happens.  To reinsert the comment on another line,
  89. move to the end of that line, type first `C-y', and then `M-;' to
  90. realign the comment.  Note that `C-u - C-x ;' is not a distinct key;
  91. it is `C-x ;' (`set-comment-column') with a negative argument.  That
  92. command is programmed to call `kill-comment' when called with a
  93. negative argument.  However, `kill-comment' is a valid command which
  94. you could bind directly to a key if you wanted to.
  95.  
  96. Multiple Lines of Comments
  97. --------------------------
  98.  
  99.    If you are typing a comment and want to continue it on another line,
  100. use the command `Meta-LFD' (`indent-new-comment-line'), which
  101. terminates the comment you are typing, creates a new blank line
  102. afterward, and begins a new comment indented under the old one.  If
  103. Auto Fill mode is on and you go past the fill column while typing, the
  104. comment is continued in just this fashion.  If point is not at the end
  105. of the line when you type `M-LFD', the text on the rest of the line
  106. becomes part of the new comment line.
  107.  
  108. Options Controlling Comments
  109. ----------------------------
  110.  
  111.    The comment column is stored in the variable `comment-column'.  You
  112. can explicitly set it to a number.  Alternatively, the command `C-x ;'
  113. (`set-comment-column') sets the comment column to the column point is
  114. at.  `C-u C-x ;' sets the comment column to match the last comment
  115. before point in the buffer, and then calls `Meta-;' to align the
  116. current line's comment under the previous one.  Note that `C-u - C-x ;'
  117. runs the function `kill-comment' as described above.
  118.  
  119.    `comment-column' is a per-buffer variable; altering the variable
  120. affects only the current buffer.  You can also change the default
  121. value.  *Note Locals::.  Many major modes initialize this variable for
  122. the current buffer.
  123.  
  124.    The comment commands recognize comments based on the regular
  125. expression that is the value of the variable `comment-start-skip'. 
  126. This regexp should not match the null string.  It may match more than
  127. the comment starting delimiter in the strictest sense of the word; for
  128. example, in C mode the value of the variable is `"/\\*+ *"', which
  129. matches extra stars and spaces after the `/*' itself.  (Note that `\\'
  130. is needed in Lisp syntax to include a `\' in the string, which is
  131. needed to deny the first star its special meaning in regexp syntax. 
  132. *Note Regexps::.)
  133.  
  134.    When a comment command makes a new comment, it inserts the value of
  135. `comment-start' to begin it.  The value of `comment-end' is inserted
  136. after point, and will follow the text you will insert into the
  137. comment.  In C mode, `comment-start' has the value `"/* "' and
  138. `comment-end' has the value `" */"'.
  139.  
  140.    `comment-multi-line' controls how `M-LFD'
  141. (`indent-new-comment-line') behaves when used inside a comment.  If
  142. `comment-multi-line' is `nil', as it normally is, then `M-LFD'
  143. terminates the comment on the starting line and starts a new comment
  144. on the new following line.  If `comment-multi-line' is not `nil', then
  145. `M-LFD' sets up the new following line as part of the same comment
  146. that was found on the starting line.  This is done by not inserting a
  147. terminator on the old line, and not inserting a starter on the new
  148. line.  In languages where multi-line comments are legal, the value you
  149. choose for this variable is a matter of taste.
  150.  
  151.    The variable `comment-indent-hook' should contain a function that
  152. is called to compute the indentation for a newly inserted comment or
  153. for aligning an existing comment.  Major modes set this variable
  154. differently.  The function is called with no arguments, but with point
  155. at the beginning of the comment, or at the end of a line if a new
  156. comment is to be inserted.  The function should return the column in
  157. which the comment ought to start.  For example, in Lisp mode, the
  158. indent hook function bases its decision on the number of semicolons
  159. that begin an existing comment, and on the code in the preceding lines.
  160.  
  161. 
  162. File: emacs,  Node: Balanced Editing,  Next: Lisp Completion,  Prev: Comments,  Up: Programs
  163.  
  164. Editing Without Unbalanced Parentheses
  165. ======================================
  166.  
  167. `M-('
  168.      Put parentheses around next sexp(s) (`insert-parentheses').
  169.  
  170. `M-)'
  171.      Move past next close parenthesis and re-indent
  172.      (`move-over-close-and-reindent').
  173.  
  174.    The commands `M-(' (`insert-parentheses') and `M-)'
  175. (`move-over-close-
  176. and-reindent') are designed to facilitate a style of editing which
  177. keeps parentheses balanced at all times.  `M-(' inserts a pair of
  178. parentheses, either together as in `()', or, if given an argument,
  179. around the next several sexps, and leaves point after the open
  180. parenthesis.  Instead of typing `( F O O )', you can type `M-( F O O',
  181. which has the same effect except for leaving the cursor before the
  182. close parenthesis.  You can then type `M-)', which moves past the
  183. close parenthesis, deletes any indentation preceding it (in this
  184. example there is none), and indents with LFD after it.
  185.  
  186. 
  187. File: emacs,  Node: Lisp Completion,  Next: Documentation,  Prev: Balanced Editing,  Up: Programs
  188.  
  189. Completion for Lisp Symbols
  190. ===========================
  191.  
  192.    Completion usually happens in the minibuffer.  An exception is
  193. completion for Lisp symbol names, which is available in all buffers.
  194.  
  195.    The command `M-TAB' (`lisp-complete-symbol') takes the partial Lisp
  196. symbol before point to be an abbreviation, and compares it against all
  197. non-trivial Lisp symbols currently known to Emacs.  Any additional
  198. characters that they all have in common are inserted at point. 
  199. Non-trivial symbols are those that have function definitions, values or
  200. properties.
  201.  
  202.    If there is an open-parenthesis immediately before the beginning of
  203. the partial symbol, only symbols with function definitions are
  204. considered as completions.
  205.  
  206.    If the partial name in the buffer has more than one possible
  207. completion and they have no additional characters in common, a list of
  208. all possible completions is displayed in another window.
  209.  
  210. 
  211. File: emacs,  Node: Documentation,  Next: Change Log,  Prev: Lisp Completion,  Up: Programs
  212.  
  213. Documentation Commands
  214. ======================
  215.  
  216.    As you edit Lisp code to be run in Emacs, you can use the commands
  217. `C-h f' (`describe-function') and `C-h v' (`describe-variable') to
  218. print documentation of functions and variables you want to call. 
  219. These commands use the minibuffer to read the name of a function or
  220. variable to document, and display the documentation in a window.
  221.  
  222.    For extra convenience, these commands provide default arguments
  223. based on the code in the neighborhood of point.  `C-h f' sets the
  224. default to the function called in the innermost list containing point.
  225.  `C-h v' uses the symbol name around or adjacent to point as its
  226. default.
  227.  
  228.    The `M-x manual-entry' command gives you access to documentation on
  229. Unix commands, system calls, and libraries.  The command reads a topic
  230. as an argument, and displays the Unix manual page for that topic. 
  231. `manual-entry' always searches all 8 sections of the manual, and
  232. concatenates all the entries it finds.  For example, the topic
  233. `termcap' finds the description of the termcap library from section 3,
  234. followed by the description of the termcap data base from section 5.
  235.  
  236. 
  237. File: emacs,  Node: Change Log,  Next: Tags,  Prev: Documentation,  Up: Programs
  238.  
  239. Change Logs
  240. ===========
  241.  
  242.    The Emacs command `M-x add-change-log-entry' helps you keep a record
  243. of when and why you have changed a program.  It assumes that you have a
  244. file in which you write a chronological sequence of entries describing
  245. individual changes.  The default is to store the change entries in a
  246. file called `ChangeLog' in the same directory as the file you are
  247. editing.  The same `ChangeLog' file therefore records changes for all
  248. the files in a directory.
  249.  
  250.    A change log entry starts with a header line that contains your name
  251. and the current date.  Except for these header lines, every line in the
  252. change log starts with a tab.  One entry can describe several changes;
  253. each change starts with a line starting with a tab and a star.  `M-x
  254. add-change-log-entry' visits the change log file and creates a new
  255. entry unless the most recent entry is for today's date and your name. 
  256. In either case, it adds a new line to start the description of another
  257. change just after the header line of the entry.  When `M-x
  258. add-change-log-entry' is finished, all is prepared for you to edit in
  259. the description of what you changed and how.  You must then save the
  260. change log file yourself.
  261.  
  262.    The change log file is always visited in Indented Text mode, which
  263. means that LFD and auto-filling indent each new line like the previous
  264. line.  This is convenient for entering the contents of an entry, which
  265. must be indented.  *Note Text Mode::.
  266.  
  267.    Here is an example of the formatting conventions used in the change
  268. log for Emacs:
  269.  
  270.      Wed Jun 26 19:29:32 1985  Richard M. Stallman  (rms at mit-prep)
  271.      
  272.              * xdisp.c (try_window_id):
  273.              If C-k is done at end of next-to-last line,
  274.              this fn updates window_end_vpos and cannot leave
  275.              window_end_pos nonnegative (it is zero, in fact).
  276.              If display is preempted before lines are output,
  277.              this is inconsistent.  Fix by setting
  278.              blank_end_of_window to nonzero.
  279.      
  280.      Tue Jun 25 05:25:33 1985  Richard M. Stallman  (rms at mit-prep)
  281.      
  282.              * cmds.c (Fnewline):
  283.              Call the auto fill hook if appropriate.
  284.      
  285.              * xdisp.c (try_window_id):
  286.              If point is found by compute_motion after xp, record that
  287.              permanently.  If display_text_line sets point position wrong
  288.              (case where line is killed, point is at eob and that line is
  289.              not displayed), set it again in final compute_motion.
  290.  
  291. 
  292. File: emacs,  Node: Tags,  Next: Fortran,  Prev: Change Log,  Up: Programs
  293.  
  294. Tag Tables
  295. ==========
  296.  
  297.    A "tag table" is a description of how a multi-file program is
  298. broken up into files.  It lists the names of the component files and
  299. the names and positions of the functions in each file.  Grouping the
  300. related files makes it possible to search or replace through all the
  301. files with one command.  Recording the function names and positions
  302. makes it possible to use the `Meta-.' command which finds the
  303. definition of a function without asking for information on the file it
  304. is in.
  305.  
  306.    Tag tables are stored in files called "tag table files".  The
  307. conventional name for a tag table file is `TAGS'.
  308.  
  309.    Each entry in the tag table records the name of one tag, the name
  310. of the file that the tag is defined in (implicitly), and the position
  311. in that file of the tag's definition.
  312.  
  313.    The programming language of a file determines what names are
  314. recorded in the tag table depends on.  Normally, Emacs includes all
  315. functions and subroutines, and may also include global variables, data
  316. types, and anything else convenient.  Each recorded name is called a
  317. "tag".
  318.  
  319. * Menu:
  320.  
  321. * Tag Syntax::
  322. * Create Tag Table::
  323. * Select Tag Table::
  324. * Find Tag::
  325. * Tags Search::
  326. * Tags Stepping::
  327. * List Tags::
  328.  
  329. 
  330. File: emacs,  Node: Tag Syntax,  Next: Create Tag Table,  Prev: Tags,  Up: Tags
  331.  
  332. Source File Tag Syntax
  333. ----------------------
  334.  
  335.    In Lisp code, any function defined with `defun', any variable
  336. defined with `defvar' or `defconst', and the first argument of any
  337. expression that starts with `(def' in column zero, is a tag.
  338.  
  339.    In C code, any C function is a tag, and so is any typedef if `-t' is
  340. specified when the tag table is constructed.
  341.  
  342.    In Fortran code, functions and subroutines are tags.
  343.  
  344.    In LaTeX text, the argument of any of the commands `\chapter',
  345. `\section', `\subsection', `\subsubsection', `\eqno', `\label',
  346. `\ref', `\cite', `\bibitem' and 
  347. `\typeout' is a tag.
  348.  
  349. 
  350. File: emacs,  Node: Create Tag Table,  Next: Select Tag Table,  Prev: Tag Syntax,  Up: Tags
  351.  
  352. Creating Tag Tables
  353. -------------------
  354.  
  355.    The `etags' program is used to create a tag table file.  It knows
  356. the syntax of C, Fortran, LaTeX, Scheme and Emacs Lisp/Common Lisp.  To
  357. use `etags', use it as a shell command
  358.  
  359.      etags INPUTFILES...
  360.  
  361. The program reads the specified files and writes a tag table named
  362. `TAGS' in the current working directory.  `etags' recognizes the
  363. language used in an input file based on the name and contents of the
  364. file; there are no switches for specifying the language.  The `-t'
  365. switch tells `etags' to record typedefs in C code as tags.
  366.  
  367.    If the tag table data become outdated due to changes in the files
  368. described in the table, you can update the tag table by running the
  369. program from the shell again.  It is not necessary to do this often.
  370.  
  371.    If the tag table fails to record a tag, or records it for the wrong
  372. file, Emacs cannot find its definition.  However, if the position
  373. recorded in the tag table becomes a little bit wrong (due to some
  374. editing in the file that the tag definition is in), the only
  375. consequence is to slow down finding the tag slightly.  Even if the
  376. stored position is very wrong, Emacs will still find the tag, but it
  377. must search the entire file for it.
  378.  
  379.    You should update a tag table when you define new tags you want to
  380. have listed, or when you move tag definitions from one file to another,
  381. or when changes become substantial.  You don't have to update the tag
  382. table after each edit, or even every day.
  383.  
  384. 
  385. File: emacs,  Node: Select Tag Table,  Next: Find Tag,  Prev: Create Tag Table,  Up: Tags
  386.  
  387. Selecting a Tag Table
  388. ---------------------
  389.  
  390.    At any time Emacs has one "selected" tag table, and all the commands
  391. for working with tag tables use the selected one.  To select a tag
  392. table, use the variable `tag-table-alist'.
  393.  
  394.    The value of `tag-table-alist' is a list that determines which
  395. `TAGS' files should be active for a given buffer.  This is not really
  396. an association list, in that all elements are checked.  The car of
  397. each element of this list is a pattern against which the buffers file
  398. name is compared; if it matches, then the cdr of the list should be the
  399. name of the tags table to use.  If more than one element of this list
  400. matches the buffers file name, all of the associated tags tables are
  401. used.  Earlier ones are searched first.
  402.  
  403.    If the car of elements of this list are strings, they are treated
  404. as regular-expressions against which the file is compared (like the
  405. `auto-mode-alist').  If they are not strings, they are evaluated.  If
  406. they evaluate to non-`nil', the current buffer is considered to match.
  407.  
  408.    If the cdr of the elements of this list are strings, they are
  409. assumed to name a tags file.  If they name a directory, the string
  410. `tags' is appended to them to get the file name.  If they are not
  411. strings, they are evaluated, and must return an appropriate string.
  412.  
  413.    For example:
  414.  
  415.        (setq tag-table-alist
  416.          (("/usr/src/public/perl/" . "/usr/src/public/perl/perl-3.0/")
  417.           ("\\.el$" . "/usr/local/emacs/src/")
  418.           ("/jbw/gnu/" . "/usr15/degree/stud/jbw/gnu/")
  419.           ("" . "/usr/local/emacs/src/")
  420.           ))
  421.  
  422.    The example defines the tag table alist in the following way:
  423.  
  424.    * Anything in the directory `/usr/src/public/perl/' should use the
  425.      `TAGS' file `/usr/src/public/perl/perl-3.0/TAGS'.
  426.  
  427.    * Files ending in `.el' should use the `TAGS' file
  428.      `/usr/local/emacs/src/TAGS'.
  429.  
  430.    * Anything in or below the directory `/jbw/gnu/' should use the
  431.      `TAGS' file `/usr15/degree/stud/jbw/gnu/TAGS'.
  432.  
  433.    If you had a file called `/usr/jbw/foo.el', it would use both
  434. `TAGS' files, 
  435.  `/usr/local/emacs/src/TAGS' and `/usr15/degree/stud/jbw/gnu/TAGS' (in
  436. that order), because it matches both patterns.
  437.  
  438.    If the buffer-local variable `buffer-tag-table' is set, it names a
  439. tags table that is searched before all others when `find-tag' is
  440. executed from this buffer.
  441.  
  442.    If there is a file called `TAGS' in the same directory as the file
  443. in question, then that tags file will always be used as well (after the
  444. `buffer-tag-table' but before the tables specified by this list).
  445.  
  446.    If the variable `tags-file-name' is set, the `TAGS' file it names
  447. will apply to all buffers (for backwards compatibility.)  It is
  448. searched first.
  449.  
  450.    If the value of the variable `tags-always-build-completion-table'
  451. is `t', the tags file will always be added to the completion table
  452. without asking first, regardless of the size of the tags file.
  453.  
  454.    The function `M-x visit-tags-table', which is largely obsoleted by
  455. the variable `tag-table-alist', tells tags commands to use the tags
  456. table file FILE first.  The FILE should be the name of a file created
  457. with the `etags' program.  A directory name is also acceptable; it
  458. means the file `TAGS' in that directory.  The function only stores the
  459. file name you provide in the variable `tags-file-name'.  Emacs does
  460. not actually read in the tag table contents until you try to use them.
  461.  You can set the variable explicitly instead of using
  462. `visit-tags-table'.  The value of the variable `tags-file-name' is the
  463. name of the tags table used by all buffers.  This is for backward
  464. compatibility, and is largely supplanted by the variable
  465. `tag-table-alist'.
  466.  
  467. 
  468. File: emacs,  Node: Find Tag,  Next: Tags Search,  Prev: Select Tag Table,  Up: Tags
  469.  
  470. Finding a Tag
  471. -------------
  472.  
  473.    The most important thing that a tag table enables you to do is to
  474. find the definition of a specific tag.
  475.  
  476. `M-. TAG &OPTIONAL OTHER-WINDOW'
  477.      Find first definition of TAG (`find-tag').
  478.  
  479. `C-u M-.'
  480.      Find next alternate definition of last tag specified.
  481.  
  482. `C-x 4 . TAG'
  483.      Find first definition of TAG, but display it in another window
  484.      (`find-tag-other-window').
  485.  
  486.    `M-.' (`find-tag') is the command to find the definition of a
  487. specified tag.  It searches through the tag table for that tag, as a
  488. string, then uses the tag table information to determine the file in
  489. which the definition is used and the approximate character position of
  490. the definition in the file.  Then `find-tag' visits the file, moves
  491. point to the approximate character position, and starts searching
  492. ever-increasing distances away for the text that should appear at the
  493. beginning of the definition.
  494.  
  495.    If an empty argument is given (just type RET), the sexp in the
  496. buffer before or around point is used as the name of the tag to find. 
  497. *Note Lists::, for information on sexps.
  498.  
  499.    The argument to `find-tag' need not be the whole tag name; it can
  500. be a substring of a tag name.  However, there can be many tag names
  501. containing the substring you specify.  Since `find-tag' works by
  502. searching the text of the tag table, it finds the first tag in the
  503. table that the specified substring appears in.  To find other tags
  504. that match the substring, give `find-tag' a numeric argument, as in
  505. `C-u M-.'.  This does not read a tag name, but continues searching the
  506. tag table's text for another tag containing the same substring last
  507. used.  If your keyboard has a real META key, `M-0 M-.' is an easier
  508. alternative to `C-u M-.'.
  509.  
  510.    If the optional second argument OTHER-WINDOW is non-`nil', it uses
  511. another window to display the tag.  Multiple active tags tables and
  512. completion are supported.
  513.  
  514.    Variables of note:
  515.  
  516. `tag-table-alist'
  517.      Controls which tables apply to which buffers.
  518.  
  519. `tags-file-name'
  520.      Stores a default tags table.
  521.  
  522. `tags-build-completion-table'
  523.      Controls completion behavior.
  524.  
  525. `buffer-tag-table'
  526.      Specifies a buffer-local table.
  527.  
  528. `make-tags-files-invisible'
  529.      Sets whether tags tables should be very hidden.
  530.  
  531. `tag-mark-stack-max'
  532.      Specifies how many tags-based hops to remember.
  533.  
  534.    Like most commands that can switch buffers, `find-tag' has another
  535. similar command that displays the new buffer in another window.  `C-x 4
  536. .' invokes the function `find-tag-other-window'.  (This key sequence
  537. ends with a period.)
  538.  
  539.    Emacs comes with a tag table file `TAGS', in the directory
  540. containing Lisp libraries, which includes all the Lisp libraries and
  541. all the C sources of Emacs.  By specifying this file with
  542. `visit-tags-table' and then using `M-.' you can quickly look at the
  543. source of any Emacs function.
  544.  
  545. 
  546. File: emacs,  Node: Tags Search,  Next: Tags Stepping,  Prev: Find Tag,  Up: Tags
  547.  
  548. Searching and Replacing with Tag Tables
  549. ---------------------------------------
  550.  
  551.    The commands in this section visit and search all the files listed
  552. in the selected tag table, one by one.  For these commands, the tag
  553. table serves only to specify a sequence of files to search.  A related
  554. command is `M-x grep' (*note Compilation::.).
  555.  
  556. `M-x tags-search'
  557.      Search for the specified regexp through the files in the selected
  558.      tag table.
  559.  
  560. `M-x tags-query-replace'
  561.      Perform a `query-replace' on each file in the selected tag table.
  562.  
  563. `M-,'
  564.      Restart one of the commands above, from the current location of
  565.      point (`tags-loop-continue').
  566.  
  567.    `M-x tags-search' reads a regexp using the minibuffer, then visits
  568. the files of the selected tag table one by one, and searches through
  569. each file for that regexp.  It displays the name of the file being
  570. searched so you can follow its progress.  As soon as an occurrence is
  571. found, `tags-search' returns.
  572.  
  573.    After you have found one match, you probably want to find all the
  574. rest.  To find one more match, type `M-,' (`tags-loop-continue') to
  575. resume the `tags-search'.  This searches the rest of the current
  576. buffer, followed by the remaining files of the tag table.
  577.  
  578.    `M-x tags-query-replace' performs a single `query-replace' through
  579. all the files in the tag table.  It reads a string to search for and a
  580. string to replace with, just like ordinary `M-x query-replace'.  It
  581. searches much like `M-x tags-search' but repeatedly, processing
  582. matches according to your input.  *Note Replace::, for more
  583. information on `query-replace'.
  584.  
  585.    It is possible to get through all the files in the tag table with a
  586. single invocation of `M-x tags-query-replace'.  But since any
  587. unrecognized character causes the command to exit, you may need to
  588. continue where you left off.  You can use `M-,' to do this.  It
  589. resumes the last tags search or replace command that you did.
  590.  
  591.    It may have struck you that `tags-search' is a lot like `grep'. 
  592. You can also run `grep' itself as an inferior of Emacs and have Emacs
  593. show you the matching lines one by one.  This works mostly the same as
  594. running a compilation and having Emacs show you where the errors were. 
  595. *Note Compilation::.
  596.  
  597. 
  598. File: emacs,  Node: Tags Stepping,  Next: List Tags,  Prev: Tags Search,  Up: Tags
  599.  
  600. Stepping Through a Tag Table
  601. ----------------------------
  602.  
  603.    If you wish to process all the files in a selected tag table, but
  604. `M-x tags-search' and `M-x tags-query-replace' are not giving you the
  605. desired result, you can use `M-x next-file'.
  606.  
  607. `C-u M-x next-file'
  608.      With a numeric argument, regardless of its value, visit the first
  609.      file in the tag table, and prepare to advance sequentially by
  610.      files.
  611.  
  612. `M-x next-file'
  613.      Visit the next file in the selected tag table.
  614.  
  615. 
  616. File: emacs,  Node: List Tags,  Prev: Tags Stepping,  Up: Tags
  617.  
  618. Tag Table Inquiries
  619. -------------------
  620.  
  621. `M-x list-tags'
  622.      Display a list of the tags defined in a specific program file.
  623.  
  624. `M-x tags-apropos'
  625.      Display a list of all tags matching a specified regexp.
  626.  
  627.    `M-x list-tags' reads the name of one of the files described by the
  628. selected tag table, and displays a list of all the tags defined in that
  629. file.  The "file name" argument is really just a string to compare
  630. against the names recorded in the tag table; it is read as a string
  631. rather than a file name.  Therefore, completion and defaulting are not
  632. available, and you must enter the string the same way it appears in
  633. the tag table.  Do not include a directory as part of the file name
  634. unless the file name recorded in the tag table contains that directory.
  635.  
  636.    `M-x tags-apropos' is like `apropos' for tags.  It reads a regexp,
  637. then finds all the tags in the selected tag table whose entries match
  638. that regexp, and displays the tag names found.
  639.  
  640. 
  641. File: emacs,  Node: Fortran,  Prev: Tags,  Up: Programs
  642.  
  643. Fortran Mode
  644. ============
  645.  
  646.    Fortran mode provides special motion commands for Fortran
  647. statements and subprograms, and indentation commands that understand
  648. Fortran conventions of nesting, line numbers and continuation
  649. statements.
  650.  
  651.    Special commands for comments are provided because Fortran comments
  652. are unlike those of other languages.
  653.  
  654.    Built-in abbrevs optionally save typing when you insert Fortran
  655. keywords.
  656.  
  657.    Use `M-x fortran-mode' to switch to this major mode.  Doing so calls
  658. the value of `fortran-mode-hook' as a function of no arguments if that
  659. variable has a non- `nil' value.
  660.  
  661. * Menu:
  662.  
  663. * Motion: Fortran Motion.     Moving point by statements or subprograms.
  664. * Indent: Fortran Indent.     Indentation commands for Fortran.
  665. * Comments: Fortran Comments. Inserting and aligning comments.
  666. * Columns: Fortran Columns.   Measuring columns for valid Fortran.
  667. * Abbrev: Fortran Abbrev.     Built-in abbrevs for Fortran keywords.
  668.  
  669.    Fortran mode was contributed by Michael Prange.
  670.  
  671. 
  672. File: emacs,  Node: Fortran Motion,  Next: Fortran Indent,  Prev: Fortran,  Up: Fortran
  673.  
  674. Motion Commands
  675. ---------------
  676.  
  677.    Fortran mode provides special commands to move by subprograms
  678. (functions and subroutines) and by statements.  There is also a
  679. command to put the region around one subprogram, convenient for
  680. killing it or moving it.
  681.  
  682. `C-M-a'
  683.      Move to beginning of subprogram
  684.       (`beginning-of-fortran-subprogram').
  685.  
  686. `C-M-e'
  687.      Move to end of subprogram (`end-of-fortran-subprogram').
  688.  
  689. `C-M-h'
  690.      Put point at beginning of subprogram and mark at end
  691.      (`mark-fortran-subprogram').
  692.  
  693. `C-c C-n'
  694.      Move to beginning of current or next statement (`fortran-next-
  695.      statement').
  696.  
  697. `C-c C-p'
  698.      Move to beginning of current or previous statement (`fortran-
  699.      previous-statement').
  700.  
  701. 
  702. File: emacs,  Node: Fortran Indent,  Next: Fortran Comments,  Prev: Fortran Motion,  Up: Fortran
  703.  
  704. Fortran Indentation
  705. -------------------
  706.  
  707.    Special commands and features are available for indenting Fortran
  708. code.  They make sure various syntactic entities (line numbers,
  709. comment line indicators and continuation line flags) appear in the
  710. columns that are required for standard Fortran.
  711.  
  712. * Menu:
  713.  
  714. * Commands: ForIndent Commands. Commands for indenting Fortran.
  715. * Numbers:  ForIndent Num.      How line numbers auto-indent.
  716. * Conv:     ForIndent Conv.     Conventions you must obey to avoid trouble.
  717. * Vars:     ForIndent Vars.     Variables controlling Fortran indent style.
  718.  
  719. 
  720. File: emacs,  Node: ForIndent Commands,  Next: ForIndent Num,  Prev: Fortran Indent,  Up: Fortran Indent
  721.  
  722. Fortran Indentation Commands
  723. ............................
  724.  
  725. `TAB'
  726.      Indent the current line (`fortran-indent-line').
  727.  
  728. `M-LFD'
  729.      Break the current line and set up a continuation line.
  730.  
  731. `C-M-q'
  732.      Indent all the lines of the subprogram point is in
  733.      (`fortran-indent-subprogram').
  734.  
  735.    TAB is redefined by Fortran mode to reindent the current line for
  736. Fortran (`fortran-indent-line').  Line numbers and continuation
  737. markers are indented to their required columns, and the body of the
  738. statement is independently indented based on its nesting in the
  739. program.
  740.  
  741.    The key `C-M-q' is redefined as `fortran-indent-subprogram', a
  742. command that reindents all the lines of the Fortran subprogram
  743. (function or subroutine) containing point.
  744.  
  745.    The key `M-LFD' is redefined as `fortran-split-line', a command to
  746. split a line in the appropriate fashion for Fortran.  In a non-comment
  747. line, the second half becomes a continuation line and is indented
  748. accordingly.  In a comment line, both halves become separate comment
  749. lines.
  750.  
  751. 
  752. File: emacs,  Node: ForIndent Num,  Next: ForIndent Conv,  Prev: ForIndent Commands,  Up: Fortran Indent
  753.  
  754. Line Numbers and Continuation
  755. .............................
  756.  
  757.    If a number is the first non-whitespace in the line, it is assumed
  758. to be a line number and is moved to columns 0 through 4.  (Columns are
  759. always counted from 0 in GNU Emacs.)  If the text on the line starts
  760. with the conventional Fortran continuation marker `$', it is moved to
  761. column 5.  If the text begins with any non whitespace character in
  762. column 5, it is assumed to be an unconventional continuation marker
  763. and remains in column 5.
  764.  
  765.    Line numbers of four digits or less are normally indented one space. 
  766. This amount is controlled by the variable `fortran-line-number-indent'
  767. which is the maximum indentation a line number can have.  Line numbers
  768. are indented to right-justify them to end in column 4 unless that would
  769. require more than the maximum indentation.  The default value of the
  770. variable is 1.
  771.  
  772.    Simply inserting a line number is enough to indent it according to
  773. these rules.  As each digit is inserted, the indentation is
  774. recomputed.  To turn off this feature, set the variable
  775. `fortran-electric-line-number' to `nil'.  Then inserting line numbers
  776. is like inserting anything else.
  777.  
  778. 
  779. File: emacs,  Node: ForIndent Conv,  Next: ForIndent Vars,  Prev: ForIndent Num,  Up: Fortran Indent
  780.  
  781. Syntactic Conventions
  782. .....................
  783.  
  784.    Fortran mode assumes that you follow certain conventions that
  785. simplify the task of understanding a Fortran program well enough to
  786. indent it properly:
  787.  
  788.    * Two nested `do' loops never share a `continue' statement.
  789.  
  790.    * The same character appears in column 5 of all continuation lines.
  791.       It is the value of the variable `fortran-continuation-char'.  By
  792.      default, this character is `$'.
  793.  
  794. If you fail to follow these conventions, the indentation commands may
  795. indent some lines unaesthetically.  However, a correct Fortran program
  796. will retain its meaning when reindented even if the conventions are not
  797. followed.
  798.  
  799. 
  800. File: emacs,  Node: ForIndent Vars,  Prev: ForIndent Conv,  Up: Fortran Indent
  801.  
  802. Variables for Fortran Indentation
  803. .................................
  804.  
  805.    Several additional variables control how Fortran indentation works.
  806.  
  807. `fortran-do-indent'
  808.      Extra indentation within each level of `do' statement (default 3).
  809.  
  810. `fortran-if-indent'
  811.      Extra indentation within each level of `if' statement (default 3).
  812.  
  813. `fortran-continuation-indent'
  814.      Extra indentation for bodies of continuation lines (default 5).
  815.  
  816. `fortran-check-all-num-for-matching-do'
  817.      If this is `nil', indentation assumes that each `do' statement
  818.      ends on a `continue' statement.  Therefore, when computing
  819.      indentation for a statement other than `continue', it can save
  820.      time by not checking for a `do' statement ending there.  If this
  821.      is non-`nil', indenting any numbered statement must check for a
  822.      `do' that ends there.  The default is `nil'.
  823.  
  824. `fortran-minimum-statement-indent'
  825.      Minimum indentation for Fortran statements.  For standard Fortran,
  826.      this is 6.  Statement bodies are always indented at least this
  827.      much.
  828.  
  829. 
  830. File: emacs,  Node: Fortran Comments,  Next: Fortran Columns,  Prev: Fortran Indent,  Up: Fortran
  831.  
  832. Comments
  833. --------
  834.  
  835.    The usual Emacs comment commands assume that a comment can follow a
  836. line of code.  In Fortran, the standard comment syntax requires an
  837. entire line to be just a comment.  Therefore, Fortran mode replaces
  838. the standard Emacs comment commands and defines some new variables.
  839.  
  840.    Fortran mode can also handle a non-standard comment syntax where
  841. comments start with `!' and can follow other text.  Because only some
  842. Fortran compilers accept this syntax, Fortran mode will not insert
  843. such comments unless you have specified to do so in advance by setting
  844. the variable `comment-start' to `"!"' (*note Variables::.).
  845.  
  846. `M-;'
  847.      Align comment or insert new comment (`fortran-comment-indent').
  848.  
  849. `C-x ;'
  850.      Applies to nonstandard `!' comments only.
  851.  
  852. `C-c ;'
  853.      Turn all lines of the region into comments, or (with arg) turn
  854.      them back into real code (`fortran-comment-region').
  855.  
  856.    `M-;' in Fortran mode is redefined as the command
  857. `fortran-comment-indent'.  Like the usual `M-;' command, recognizes an
  858. existing comment and aligns its text appropriately.  If there is no
  859. existing comment, a comment is inserted and aligned.
  860.  
  861.    Inserting and aligning comments is not the same in Fortran mode as
  862. in other modes.  When a new comment must be inserted, a full-line
  863. comment is inserted if the current line is blank.  On a non-blank
  864. line, a non-standard `!' comment is inserted if you previously
  865. specified you wanted to use them.  Otherwise a full-line comment is
  866. inserted on a new line before the current line.
  867.  
  868.    Non-standard `!' comments are aligned like comments in other
  869. languages, but full-line comments are aligned differently.  In a
  870. standard full-line comment, the comment delimiter itself must always
  871. appear in column zero.  What can be aligned is the text within the
  872. comment.  You can choose from three styles of alignment by setting the
  873. variable `fortran-comment-indent-style' to one of these values:
  874.  
  875. `fixed'
  876.      The text is aligned at a fixed column, which is the value of
  877.      `fortran-comment-line-column'.  This is the default.
  878.  
  879. `relative'
  880.      The text is aligned as if it were a line of code, but with an
  881.      additional `fortran-comment-line-column' columns of indentation.
  882.  
  883. `nil'
  884.      Text in full-line columns is not moved automatically.
  885.  
  886.    You can also specify the character to be used to indent within
  887. full-line comments by setting the variable
  888. `fortran-comment-indent-char' to the character you want to use.
  889.  
  890.    Fortran mode introduces two variables `comment-line-start' and
  891. `comment-line-start-skip' which play for full-line comments the same
  892. roles played by `comment-start' and `comment-start-skip' for ordinary
  893. text-following comments.  Normally these are set properly by Fortran
  894. mode so you do not need to change them.
  895.  
  896.    The normal Emacs comment command `C-x ;' has not been redefined. 
  897. It can therefore be used if you use `!' comments, but is useless in
  898. Fortran mode otherwise.
  899.  
  900.    The command `C-c ;' (`fortran-comment-region') turns all the lines
  901. of the region into comments by inserting the string `C$$$' at the
  902. front of each one.  With a numeric arg, the region is turned back into
  903. live code by deleting `C$$$' from the front of each line.  You can
  904. control the string used for the comments by setting the variable
  905. `fortran-comment-region'.  Note that here we have an example of a
  906. command and a variable with the same name; the two uses of the name
  907. never conflict because in Lisp and in Emacs it is always clear from
  908. the context which one is referred to.
  909.  
  910. 
  911. File: emacs,  Node: Fortran Columns,  Next: Fortran Abbrev,  Prev: Fortran Comments,  Up: Fortran
  912.  
  913. Columns
  914. -------
  915.  
  916. `C-c C-r'
  917.      Displays a "column ruler" momentarily above the current line
  918.      (`fortran-column-ruler').
  919.  
  920. `C-c C-w'
  921.      Splits the current window horizontally so that it is 72 columns
  922.      wide.  This may help you avoid going over that limit
  923.      (`fortran-window-create').
  924.  
  925.    The command `C-c C-r' (`fortran-column-ruler') shows a column ruler
  926. above the current line.  The comment ruler consists of two lines of
  927. text that show you the locations of columns with special significance
  928. in Fortran programs.  Square brackets show the limits of the columns
  929. for line numbers, and curly brackets show the limits of the columns
  930. for the statement body.  Column numbers appear above them.
  931.  
  932.    Note that the column numbers count from zero, as always in GNU
  933. Emacs.  As a result, the numbers may not be those you are familiar
  934. with; but the actual positions in the line are standard Fortran.
  935.  
  936.    The text used to display the column ruler is the value of the
  937. variable `fortran-comment-ruler'.  By changing this variable, you can
  938. change the display.
  939.  
  940.    For even more help, use `C-c C-w' (`fortran-window-create'), a
  941. command which splits the current window horizontally, resulting in a
  942. window 72 columns wide.  When you edit in this window, you can
  943. immediately see when a line gets too wide to be correct Fortran.
  944.  
  945. 
  946. File: emacs,  Node: Fortran Abbrev,  Prev: Fortran Columns,  Up: Fortran
  947.  
  948. Fortran Keyword Abbrevs
  949. -----------------------
  950.  
  951.    Fortran mode provides many built-in abbrevs for common keywords and
  952. declarations.  These are the same sort of abbrev that you can define
  953. yourself.  To use them, you must turn on Abbrev mode.  *note
  954. Abbrevs::..
  955.  
  956.    The built-in abbrevs are unusual in one way: they all start with a
  957. semicolon.  You cannot normally use semicolon in an abbrev, but Fortran
  958. mode makes this possible by changing the syntax of semicolon to "word
  959. constituent".
  960.  
  961.    For example, one built-in Fortran abbrev is `;c' for `continue'. 
  962. If you insert `;c' and then insert a punctuation character such as a
  963. space or a newline, the `;c' changes automatically to `continue',
  964. provided Abbrev mode is enabled.
  965.  
  966.    Type `;?' or `;C-h' to display a list of all built-in Fortran
  967. abbrevs and what they stand for.
  968.  
  969. 
  970. File: emacs,  Node: Running,  Next: Abbrevs,  Prev: Programs,  Up: Top
  971.  
  972. Compiling and Testing Programs
  973. ******************************
  974.  
  975.    The previous chapter discusses the Emacs commands that are useful
  976. for making changes in programs.  This chapter deals with commands that
  977. assist in the larger process of developing and maintaining programs.
  978.  
  979. * Menu:
  980.  
  981. * Compilation::        Compiling programs in languages other than Lisp
  982.                         (C, Pascal, etc.)
  983. * Modes: Lisp Modes.   Various modes for editing Lisp programs, with
  984.                        different facilities for running the Lisp programs.
  985. * Libraries: Lisp Libraries.      Creating Lisp programs to run in Emacs.
  986. * Interaction: Lisp Interaction.  Executing Lisp in an Emacs buffer.
  987. * Eval: Lisp Eval.     Executing a single Lisp expression in Emacs.
  988. * Debug: Lisp Debug.   Debugging Lisp programs running in Emacs.
  989. * External Lisp::      Communicating through Emacs with a separate Lisp.
  990.  
  991. 
  992. File: emacs,  Node: Compilation,  Next: Lisp Modes,  Prev: Running,  Up: Running
  993.  
  994. Running `make', or Compilers Generally
  995. ======================================
  996.  
  997.    Emacs can run compilers for non-interactive languages like C and
  998. Fortran as inferior processes, feeding the error log into an Emacs
  999. buffer.  It can also parse the error messages and visit the files in
  1000. which errors are found, moving point to the line where the error
  1001. occurred.
  1002.  
  1003. `M-x compile'
  1004.      Run a compiler asynchronously under Emacs, with error messages to
  1005.      `*compilation*' buffer.
  1006.  
  1007. `M-x grep'
  1008.      Run `grep' asynchronously under Emacs, with matching lines listed
  1009.      in the buffer named `*compilation*'.
  1010.  
  1011. `M-x kill-compilation'
  1012.      Kill the process made by the M-x compile command.
  1013.  
  1014. `M-x kill-grep'
  1015.      Kill the running compilation or `grep' subprocess.
  1016.  
  1017. `C-x `'
  1018.      Visit the next compiler error message or `grep' match.
  1019.  
  1020.    To run `make' or another compiler, type `M-x compile'.  This
  1021. command reads a shell command line using the minibuffer, then executes
  1022. the specified command line in an inferior shell with output going to
  1023. the buffer named `*compilation*'.  By default, the current buffer's
  1024. default directory is used as the working directory for the execution of
  1025. the command; therefore, the makefile comes from this directory.
  1026.  
  1027.    When the shell command line is read, the minibuffer appears
  1028. containing a default command line (the command you used the last time
  1029. you typed `M-x compile').  If you type just RET, the same command line
  1030. is used again.  The first `M-x compile' provides `make -k' as the
  1031. default.  The default is taken from the variable `compile-command'; if
  1032. the appropriate compilation command for a file is something other than
  1033. `make -k', it can be useful to have the file specify a local value for
  1034. `compile-command' (*note File Variables::.).
  1035.  
  1036.    When you start a compilation, the buffer `*compilation*' is
  1037. displayed in another window but not selected.  Its mode line displays
  1038. the word `run' or `exit' in the parentheses tells you whether
  1039. compilation is finished.  You do not have to keep this buffer visible;
  1040. compilation continues in any case.
  1041.  
  1042.    To kill the compilation process, type `M-x-compilation'.  The mode
  1043. line of the `*compilation*' buffer changes to say `signal' instead of
  1044. `run'.  Starting a new compilation also kills any running compilation,
  1045. as only one can occur at any time.  Starting a new compilation prompts
  1046. for confirmation before actually killing a compilation that is running.
  1047.  
  1048.    To parse the compiler error messages, type `C-x `' (`next-error'). 
  1049. The character following `C-x' is the grave accent, not the single
  1050. quote.  The command displays the buffer `*compilation*' in one window
  1051. and the buffer in which the next error occurred in another window. 
  1052. Point in that buffer is moved to the line where the error was found. 
  1053. The corresponding error message is scrolled to the top of the window
  1054. in which `*compilation*' is displayed.
  1055.  
  1056.    The first time you use `C-x `' after the start of a compilation, it
  1057. parses all the error messages, visits all the files that have error
  1058. messages, and creates markers pointing at the lines the error messages
  1059. refer to.  It then moves to the first error message location. 
  1060. Subsequent uses of `C-x `' advance down the data set up by the first
  1061. use.  When the preparsed error messages are exhausted, the next `C-x
  1062. `' checks for any more error messages that have come in; this is
  1063. useful if you start editing compiler errors while compilation is still
  1064. going on.  If no additional error messages have come in, `C-x `'
  1065. reports an error.
  1066.  
  1067.    `C-u C-x `' discards the preparsed error message data and parses the
  1068. `*compilation*' buffer again, then displays the first error.  This
  1069. way, you can process the same set of errors again.
  1070.  
  1071.    Instead of running a compiler, you can run `grep' and see the lines
  1072. on which matches were found.  To do this, type `M-x grep' with an
  1073. argument line that contains the same arguments you would give to
  1074. `grep' a `grep'-style regexp (usually in single quotes to quote the
  1075. shell's special characters) followed by filenames, which may use
  1076. wildcard characters.  The output from `grep' goes in the
  1077. `*compilation*' buffer.  You can use `C-x `' to find the lines that
  1078. match as if they were compilation errors.
  1079.  
  1080.    Note: a shell is used to run the compile command, but the shell is
  1081. not run in interactive mode.  This means in particular that the shell
  1082. starts up with no prompt.  If you find your usual shell prompt making
  1083. an unsightly appearance in the `*compilation*' buffer, it means you
  1084. have made a mistake in your shell's initialization file (`.cshrc' or
  1085. `.shrc' or ...) by setting the prompt unconditionally.  The shell
  1086. initialization file should set the prompt only if there already is a
  1087. prompt.  Here's how to do it in `csh':
  1088.  
  1089.      if ($?prompt) set prompt = ...
  1090.  
  1091. 
  1092. File: emacs,  Node: Lisp Modes,  Next: Lisp Libraries,  Prev: Compilation,  Up: Running
  1093.  
  1094. Major Modes for Lisp
  1095. ====================
  1096.  
  1097.    Emacs has four different major modes for Lisp.  They are the same in
  1098. terms of editing commands, but differ in the commands for executing
  1099. Lisp expressions.
  1100.  
  1101. Emacs-Lisp mode
  1102.      The mode for editing source files of programs to run in Emacs
  1103.      Lisp.  This mode defines `C-M-x' to evaluate the current defun. 
  1104.      *Note Lisp Libraries::.
  1105.  
  1106. Lisp Interaction mode
  1107.      The mode for an interactive session with Emacs Lisp.  It defines
  1108.      LFD to evaluate the sexp before point and insert its value in the
  1109.      buffer.  *Note Lisp Interaction::.
  1110.  
  1111. Lisp mode
  1112.      The mode for editing source files of programs that run in other
  1113.      dialects of Lisp than Emacs Lisp.  This mode defines `C-M-x' to
  1114.      send the current defun to an inferior Lisp process.  *Note
  1115.      External Lisp::.
  1116.  
  1117. Inferior Lisp mode
  1118.      The mode for an interactive session with an inferior Lisp process. 
  1119.      This mode combines the special features of Lisp mode and Shell
  1120.      mode (*note Shell Mode::.).
  1121.  
  1122. Scheme mode
  1123.      Like Lisp mode but for Scheme programs.
  1124.  
  1125. Inferior Scheme mode
  1126.      The mode for an interactive session with an inferior Scheme
  1127.      process.
  1128.  
  1129. 
  1130. File: emacs,  Node: Lisp Libraries,  Next: Lisp Eval,  Prev: Lisp Modes,  Up: Running
  1131.  
  1132. Libraries of Lisp Code for Emacs
  1133. ================================
  1134.  
  1135.    Lisp code for Emacs editing commands is stored in files whose names
  1136. conventionally end in `.el'.  This ending tells Emacs to edit them in
  1137. Emacs-Lisp mode (*note Lisp Modes::.).
  1138.  
  1139. * Menu:
  1140.  
  1141. * Loading::        Loading libraries of Lisp code into Emacs for use.
  1142. * Compiling Libraries:: Compiling a library makes it load and run faster.
  1143. * Mocklisp::        Converting Mocklisp to Lisp so GNU Emacs can run it.
  1144.  
  1145.